package com.example.lijun.myapplication;

import android.content.Context;
import android.graphics.Canvas;
import android.support.v7.widget.AppCompatEditText;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.AttributeSet;
import android.util.Log;

/**
 * Created by lijun on 2017/11/27.
 */

public class LettersText extends AppCompatEditText implements TextWatcher {
    private final static String TAG_L = "LettersText";

    public LettersText(Context context) {
        super(context);
    }

    public LettersText(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public LettersText(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {

    }

    @Override
    public void onTextChanged(CharSequence s, int start, int before, int count) {
        Log.d(TAG_L, "aaaa");

    }

    @Override
    public void afterTextChanged(Editable s) {

    }

}
